

package tnviet.proj.jna.table;

import java.util.Locale;
import tnviet.proj.jna.Program;
import tnviet.proj.jna.analyzer.JNPacketAnalyzer;
import tnviet.proj.jna.utilities.ResourceManager;

/**
 *
 * @author Administrator
 */
public class JNTableView {
    JNPacketAnalyzer analyzer;
    //String valueName;
    int index;
    private static ResourceManager resourceManager = new ResourceManager(JNPacketAnalyzer.class, Program.locale);

//    public JNTableView(JNPacketAnalyzer analyzer, String valueName) {
//        this.analyzer = analyzer;
//        this.valueName = valueName;
//    }
    public JNTableView(JNPacketAnalyzer analyzer, int valueIndex){
        this.index = valueIndex;
        this.analyzer = analyzer;
        //String protocolName = analyzer.getProtocolName();
        //valueName = analyzer.getValueNameAt(valueIndex);
    }

    public JNPacketAnalyzer getAnalyzer() {
        return analyzer;
    }

    public String getValueName() {
        return analyzer.getValueNameAt(index);
    }
    public int getIndex(){
        return index;
    }
}
